home *** CD-ROM | disk | FTP | other *** search
- #!/bin/sh
- #
- # ieee1394 1.00 2000/09/07 21:02:09 (Albrecht Dre▀)
- #
- # Initialize or shutdown a IEEE1394/FireWire device
- #
- # The first argument should be either 'start' or 'stop'. The second
- # argument is the base name for the device.
- #
- # There is not very much to do for this script...
- #
-
- if [ -r ./shared ] ; then . ./shared ; else . /etc/pcmcia/shared ; fi
-
- # Get device attributes
- get_info $DEVICE
-
- # Load site-specific settings
- ADDRESS="$SCHEME,$SOCKET,$INSTANCE"
- . $0.opts
-
- case "$ACTION" in
-
- 'start')
- if is_true $LOAD_1394RAW ; then
- modprobe raw1394
- fi
- ;;
-
- 'check')
- is_true $NO_CHECK && exit 0
- ;;
-
- 'cksum')
- chk_simple "$NEW_SCHEME,$SOCKET,$INSTANCE" || exit 1
- ;;
-
- 'stop')
- if is_true $LOAD_1394RAW ; then
- modprobe -r raw1394
- fi
- ;;
-
- 'suspend')
- ;;
-
- 'resume')
- ;;
-
- *)
- usage
- ;;
-
- esac
-
- exit 0
-